<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateBlogLinksTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     * 友情链接表
     */
    public function up()
    {
        Schema::create('blog_links', function (Blueprint $table) {
            $table->increments('link_id');
            $table->string('link_name',255)->comment('友情链接名');
            $table->string('link_title',255)->comment('链接标题');
            $table->string('link_url',255)->comment('链接URL');
            $table->integer('link_order')->comment('排序');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('blog_links');
    }
}
